package com.cybertron.ironhide.manage.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Article;

public interface ArticleMapper {
	int deleteByPrimaryKey(String id);

	int insert(Article record);

	int insertSelective(Article record);

	Article selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Article record);

	int updateByPrimaryKeyWithBLOBs(Article record);

	int updateByPrimaryKey(Article record);

	List<Article> selectBySelective(Article article, Pager pager);

	void deleteByPrimaryKeys(@Param("articleIds") String[] articleIds);

	List<Article> selectTop(@Param("type") Integer type,
			@Param("topNum") Integer topNum);

	Article selectByTitle(String title);

	List<Article> selectBySelective(Article record);
}